#include <iostream>
#include "server.h"

int main()
{
	try {
		comunication::io_service io_service;
		comunication::tcp::endpoint endpoint(comunication::tcp::v4(), 6669);
		comunication::server server(io_service, endpoint);
		std::cout<<"Server started "<<std::endl;
		io_service.run();

	} catch(std::exception& e) {
		std::cout<<"Excetopion: "<< e.what() <<std::endl;
	}
	return 0;
}